package main

import (
	"fmt"
	"go_jd_kill_colly/Utily"
)

func main() {

	c := &Utily.Session{}
	//c.Init()

	fmt.Println("0:获取链接")
	fmt.Println("1:抢购名额")
	fmt.Println("2:初始化信息")

	for {
		inputText := ""
		fmt.Scanf("%s\n", &inputText)

		if inputText == "0" {
			c.GetRequestUrl()
			c.GetKillUrl()
		} else if inputText == "1" {
			c.VisitKillOrderUrl()
		} else if inputText == "2" {
			c.GetInitPerson()
			c.SubmitKill()
		} else {
			break
		}
	}
}
